Document Solutions for PDF
DS.Documents.DX.Windows Assembly / GrapeCity.Documents.DX Namespace / ComObject Class / As Method / As<T>(Object) Method
The type of the COM interface to query
The managed COM object.

In This Topic
    As<T>(Object) Method
    In This Topic
    Queries a managed object for a particular COM interface support (This method is a shortcut to QueryInterface(Guid,IntPtr))
    Syntax
    'Declaration
     
    Public Overloads Shared Function As(Of T As ComObject)( _
       ByVal comObject As System.Object _
    ) As T
    public static T As<T>( 
       System.object comObject
    )
    where T: ComObject

    Parameters

    comObject
    The managed COM object.

    Type Parameters

    T
    The type of the COM interface to query

    Return Value

    An instance of the queried interface
    See Also